import {get, post, del, put} from "@/apis/http/request";
import {RetailMsg} from "@/apis/model/msg/RetailMsgModel";

/**
* 得到列表
* @param params
*/
export const getRetailMsgList = (params: any) => get("/retailMsg/list", params)

/**
* 得到分页列表
* @param params
*/
export const retailMsgPage = (params: any) => post("/retailMsg/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteRetailMsgById = (id: number) => del("/retailMsg/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertRetailMsg = (param: RetailMsg) => post("/retailMsg", param)

/**
* 更新数据
* @param param
*/
export const updateRetailMsg = (param: RetailMsg) => put("/retailMsg", param)

/**
 * 推送消息
 * @param id
 */
export const delayMsg = (id: number) => get("/retailMsg/delayMsg/"+id)
